#ifndef PERSON_H
#define PERSON_H

#include <QObject>
#include "iostream"
#include "sstream"
using namespace std;
using std::ios;
using std::ostringstream;
class person : public QObject
{
    Q_OBJECT
public:
    explicit person(QObject *parent = nullptr);
    person(QString nmb,QString nm,bool sx,int ae,QString cge,QString tm,int pro,int pa);
    QString findnumber() ;              ///查询学号
        QString findname();            ///查询名字
        bool findsex();                    ///查询性别
        int findage();                     ///查询年龄
        QString findcollege() ;               ///查询学院
        void setcollege(QString cge);
        QString findtime();                  ///查询入学时间
        void addprogram();                    ///真假项目数量
        int findprogram();                  ///查询项目数量
        void addpaper();                    ///真假论文数量
        int findpaper();                     ///查询论文数量
        bool ifhave(QString mes);           ///根据关键词查人
protected:
    QString number;
    QString name;
    bool sex;
    int age;
    QString college;
    QString time;
    int program;
    int paper;

signals:

};

#endif // PERSON_H
